using System;
using System.Collections.Generic;
using System.Text;

namespace PlayTime
{
    public class Factory
    {
        static string m_cGameName;
        public static string GameName
        {
            get { return m_cGameName; }
            set { m_cGameName = value; }
        }

        public static Bridge getGameEngine(string strGame)
        {
           
            Bridge bridgeGame = null;
            switch (strGame)
            {
                case "ContractBridge":
                    bridgeGame = PlayTime.ContractBridge.getInstance();
                    break;
            
            }
            return bridgeGame;
        }
        public static System.Windows.Forms.Form getDisplayForm(string strGame)
        {

            System.Windows.Forms.Form bridgeGameDisplay = null;
            switch (strGame)
            {
                case "ContractBridge":
                    bridgeGameDisplay = PlayTime.BridgeTableDisplay.getInstance();
                    break;
            }
            return bridgeGameDisplay;
        }
        public static Session getSession(string strGame)
        {
            Session bridgeSession = null;
            switch (strGame)
            {
                case "ContractBridge":
                    bridgeSession = PlayTime.ContractBridgeSession.getInstance(); 
                    break;
            }
            return bridgeSession;
        }
    }
}
